class Animal:
    def speak(self):
        pass


class Cat(Animal):
    print("cat speak")


class Dog(Animal):
    def speak(self):
        print("dog speak")


def make_noise(animal: Animal):
    animal.speak()

make_noise(Dog())
make_noise(Cat())